import axios from '@/utils/http'
//获取文章列表api
export const postList = function (params) {
  return axios({
    url: `/posts`,
    params
  })
}

//获取文章详情：api
// export const PostCommentId = function (params) {
//   return axios({
//     url: `/posts/`,
//     params
//   })

// 获取文章详情：api
export const PostCommentUser = function (data) {
  return axios({
    url: '/posts/comments',
    data
  })
}
